package com.xhl.spring.module.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.stereotype.Component;

/**
 * @Author CazCen
 * @Date 2021/12/1 22:54
 */
@Component
@Slf4j
public class ContextClosedEventListener implements ApplicationListener<ContextClosedEvent> {
    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        log.info("我是 ContextClosedEvent 事件，已经发布了，监听到了吧!!!! ");
    }
}
